package com.pipe.servicepipe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 欠款记录表
 * </p>
 *
 * @author hetao
 * @since 2020-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="PipeDebt对象", description="欠款记录表")
public class PipeDebt implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER)
    private String id;

    @ApiModelProperty(value = "关联销售订单id")
    private String sid;

    @ApiModelProperty(value = "欠款总金额")
    private BigDecimal totalMoney;

    @ApiModelProperty(value = "已还金额")
    private BigDecimal repayMoney;

    @ApiModelProperty(value = "剩余还款金额")
    private BigDecimal residueMoney;

    private String debtIcon;

    private LocalDateTime createTime;

    private LocalDateTime modifiedTime;

    private Integer isDelete;


}
